<template>
  <div>
    <div v-if="statusArr.length < 1">
      <span>1: 未完成</span>
      <span>2: 未完成</span>
      <span>3: 未完成</span>
      <span>4: 未完成</span>
      <span>5: 未完成</span>
    </div>

    <div v-else>
      <span
        v-for="(item, index) in statusArr"
        :key="index"
        :class="item.classAttribute"
        >{{ index + 1 }}.{{ item.cont }}</span
      >
    </div>
  </div>
</template>

<script>
export default {
  props: ["statusArr"],
};
</script>

<style scoped>
.right {
  color: green;
}
.error {
  color: red;
}
.undo {
  color: #ccc;
}
</style>